package com.example04.service;

import com.example04.entity.Student;
import com.example04.service.impl.StudentServiceImpl;

import java.util.List;
import java.util.Map;

public interface StudentService {
    StudentServiceImpl s = new StudentServiceImpl();
    List<Student> addStudent(Student student);
    List<Student> listStudentsByYear(int year);
    List<String> listStudentsNames(int year, Student.Sex sex);
    List<Student> listStudentsByYearSortedById(int year);

    Map<Student.Sex, List<Student>>  listStudentsMapBySex();
    Map<Integer, Student> listStudentsByYearMapById(int year);
    boolean removeStudent(List<Student> students, int id);
}